<?php
if (!defined('BASEPATH'))
	exit('No direct script access allowed');

class Admin_recent_listing extends MX_Controller {

	public function __construct() {
		parent::__construct();
		$this->load->model(array('admin/admin_recent_listing_model'));
		$this->load->library('pagination');
		//$this->admin_commoncall->check_admin_login();
		$this->template->set_theme('admin');
		$this->template->set_layout('default');
		//$this->template->set_partial('side_menu','layouts/side_menu');
		//$this->template->set_partial('nav_bar','layouts/nav_bar');

	}
	function index()
	{
		
		$data['recent']['listing'] = $this->admin_recent_listing_model->get_recent_listing();
		
		$this->template->title('Welcome', 'Ypage.com')
		->set_partial('nav_bar','layouts/nav_bar')
		->set_partial('side_menu','layouts/side_menu')
		->build('admin/admin_recent_listing',$data);
		
	}
}